CXX = g++-4.7
LINK = g++-4.7
LINKFLAGS = -o 
CFLAGS = -c -Wall -std=c++11
LIBS = 
OBJS = Prototype.o Program.o Memory.o Stack.o Generator.o

all: Prototype

Prototype: $(OBJS)
	$(LINK) $(OBJS) $(LINKFLAGS) Prototype $(LIBS)

main.o: Prototype.cpp
	$(CXX) $(CFLAGS) Prototype.cpp
	
Program.o: Program.cpp
	$(CXX) $(CFLAGS) Program.cpp
	
Memory.o : Memory.cpp
	$(CXX) $(CFLAGS) Memory.cpp

Stack.o : Stack.cpp
	$(CXX) $(CFLAGS) Stack.cpp
	
Generator.o : Generator.cpp
	$(CXX) $(CFLAGS) Generator.cpp
	
clean:
	rm -rf *.o Prototype